package com.cloudpan.entity.vo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author sc
 * @DATE 2024/1/19 9:03
 * @Description:
 * @Version 1.0
 */
@Data
public class SysFileTreeVo {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "文件ID")
    private String fileId;

    @ApiModelProperty(value = "用户ID ")
    private String userId;

    @ApiModelProperty(value = "md5值，第一次上传记录")
    private String fileMd5;

    @ApiModelProperty(value = "父级ID")
    private String filePid;

    @ApiModelProperty(value = "object_key")
    private String objectKey;

    @ApiModelProperty(value = "文件大小")
    private Long fileSize;

    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "封面")
    private String fileCover;

    @ApiModelProperty(value = "文件url")
    private String fileUrl;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "0:文件 1:目录")
    private String folderType;

    @ApiModelProperty(value = "1:视频 2:音频  3:图片 4:文档 5:其他")
    private String fileCategory;

    @ApiModelProperty(value = " 1:视频 2:音频  3:图片 4:pdf 5:doc 6:excel 7:txt 8:code 9:zip 10:其他")
    private String fileType;

    @ApiModelProperty(value = "树形结构")
    private List<SysFileTreeVo> children;

}
